﻿
using System;
using System.ServiceModel;

namespace WSU.Cheka.HelloWCF.Contracts
{
    // SessionMode is an attribute of ServiceContract
    // not for service instance, but for service interface
    // its usage is that if using a channel with doesn't support required session mode
    // it will throw out exception
    [ServiceContract(SessionMode = SessionMode.Required)]
    public interface IWsuContract
    {
        [OperationContract]
        string[] GetDepartments();

        [OperationContract]
        int GetNumberByDepartment(string departName);

        [OperationContract]
        void AddDepartment(string departName, int number);
    }
}